oops, radians
authorparkrrrr <parkrrrr@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 17 Apr 2006 15:53:26 +0000 (15:53 +0000)
committerparkrrrr <parkrrrr@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 17 Apr 2006 15:53:26 +0000 (15:53 +0000)
gpsbabel/trackfilter.c

index 558a12f395439903c5086cabee1f63a140868f86..02254355795ba01517c15c56489ea73067f60099 100644 (file)
@@ -637,8 +637,9 @@ trackfilter_synth(void)
                }
                else {
                        if ( opt_course ) {
-                               wpt->course = heading( oldlat, oldlon,
-                                       wpt->latitude, wpt->longitude );
+                               wpt->course = DEG(heading( RAD(oldlat), 
+                                       RAD(oldlon),RAD(wpt->latitude), 
+                                       RAD(wpt->longitude) ));
                        }
                        if ( opt_speed ) {
                                if ( oldtime != wpt->creation_time ) {